﻿using Orchard.Localization;
using Orchard.UI.Navigation;

namespace Contrib.FeedsAggregator {
    public class AdminMenu : INavigationProvider {
        public Localizer T { get; set; }

        public string MenuName { get { return "admin"; } }

        public void GetNavigation(NavigationBuilder builder) {
            builder.Add(T("Feeds"), "2.5", BuildMenu);
        }

        private void BuildMenu(NavigationItemBuilder menu) {
                menu.Add(T("Manage Feeds"), "3", item => item.Action("Index", "Admin", new {area = "Contrib.FeedsAggregator"}));
        }
    }
}